package com.daify.threadlearn.chapter01.order03;


import java.awt.*;

/**
 * @author daify
 * @date 2019-06-04
 */
public class ThisEscape {

    public String name;

    public ThisEscape(EventSource source) {
        source.registerListener(new EventListener() {
            public void onEvent(Event event) {
                System.out.println(event);
            }
        });
    }


    class EventSource {

        public String name2;

        public void registerListener(EventListener listener) {

        }
    }

}
